package com.xfpp.javaDemo.proxy;

public class ClientTest {

	public static void main(String[] args) throws Exception{
//		TankTimeProxy ttp = new TankTimeProxy(new Tank());
		
		//Moveable m = new Tank();
//		ttp.move();
		
		Tank t = new Tank();
		InvocationHandler h = new TimeHandler(t); 
		Moveable m = (Moveable)Proxy.newProxyInstance(Moveable.class, h);
		m.stop();
	}

}
